<?php

class CommentSearchForm extends CFormModel
{
	public $name;
	public $clientIp;
	
	public $email;
	public $comment;
	
	public $chapterId;
	public $sectionId;

	/**
	 * Declares the validation rules.
	 */
	public function rules()
	{
		return array(
				array('name, email, comment, clientIp, sectionId, chapterId', 'safe'),
		);
	}

	public function attributeLabels()
	{
		return array(
			'name'=>'昵称',
			'clientIp'=>'客户Ip',
			'email'=>'邮箱',
			'comment'=>'评论内容',
			'chapterId'=>'章节Id',
			'sectionId'=>'段落Id'
		);
	}
}